Ballerina API Documentation

Functions of ballerina.net.ws package

function pushText(message m, string text)

This pushes text from server to the the same client who sent the message.

Parameters:

Parameter NameData TypeDescription
mmessagemessage: message
textstringText which should be sent


Annotations of ballerina.net.ws package

annotation OnClose()

Attributes:

Attribute NameData TypeDescription

annotation OnOpen()

Attributes:

Attribute NameData TypeDescription

annotation OnTextMessage()

Attributes:

Attribute NameData TypeDescription

annotation WebSocketUpgradePath(string value)

Attributes:

Attribute NameData TypeDescription
valuestring


Menu

  • Functions
    • pushText(message m, string text)
  • Annotations
    • OnClose ()
    • OnOpen ()
    • OnTextMessage ()
    • WebSocketUpgradePath (string value)

Copyright 2017 Ballerina API Documentation