Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.61 KB

File metadata and controls

47 lines (38 loc) · 1.61 KB

WebSocketInfo

Properties

Name Type Description Notes
message str [optional] [default to 'WebSocket endpoint for real-time NER entity extraction']
example str [optional] [default to '''
<input type="text" id="cms-input" autocomplete="off"/>
<button>Send</button>
    <script> var ws = new WebSocket("ws://localhost:8000/stream/ws"); ws.onmessage = function(event) { document.getElementById("cms-output").appendChild( Object.assign(document.createElement(\'li\'), { textContent: event.data }) ); }; function send_doc(event) { ws.send(document.getElementById("cms-input").value); event.preventDefault(); }; </script>'''] **protocol** | **str** | | [optional] [default to 'WebSocket']

    Example

    from cms_client.models.web_socket_info import WebSocketInfo
    
    # TODO update the JSON string below
    json = "{}"
    # create an instance of WebSocketInfo from a JSON string
    web_socket_info_instance = WebSocketInfo.from_json(json)
    # print the JSON string representation of the object
    print(WebSocketInfo.to_json())
    
    # convert the object into a dict
    web_socket_info_dict = web_socket_info_instance.to_dict()
    # create an instance of WebSocketInfo from a dict
    web_socket_info_from_dict = WebSocketInfo.from_dict(web_socket_info_dict)

    [Back to Model list] [Back to API list] [Back to README]