Crossbar This function creates a WebSocket echo server using the Crossbar library. It takes two arguments: the class name of the WebSocket component and the arguments to be passed to the class. Websocket Echo Server 2024-12-16 12:18:04 99 views
Autobahn WAMP This function creates a simple WAMP (WebSocket Application Messaging Protocol) client that registers a remote procedure named `add`, which takes two arguments and returns their sum. The type of code 2024-12-16 12:17:34 32 views
Autobahn Twisted This function creates a WebSocket server based on the Autobahn library, which accepts two arguments and calls the remote Procedure 'com.myapp.add' with these arguments when a connection is established. Websocket Server Application 2024-12-16 12:17:19 29 views
graypy json This function uses the graypy library from the Graylog third-party library to send events to the Graylog server. It takes a message and a source as parameters, then formats these informations into JSON format and sends them to the Graylog server via a Socket connection. Function 2024-12-16 12:16:29 25 views
Autobahn Twisted This code defines a WebSocket server using the Autobahn library. The server listens on port 8080 of the local machine, accepts connections and messages from clients, and echoes received messages back to the clients. WebSocket Server 2024-12-16 12:15:16 15 views
Autobahn Twisted This code creates a WAMP (WebSocket Application Messaging Protocol) application session using the Autobahn library. It defines an EchoComponent that echoes messages received from other WAMP components. It uses the Twisted library to handle network connections and the event loop. WAMP (WebSocket Application Messaging Protocol) Application Session 2024-12-16 12:12:25 6 views
Autobahn Twisted This code creates a simple WAMP (WebSocket Application Protocol) server based on the Autobahn library. It uses the Twisted framework to listen for TCP connections and implements the WAMP protocol. The server sends a randomly called message when a client joins. The type of code 2024-12-16 12:11:55 5 views
Autobahn asyncio This function creates a WebSocket echo server using the Autobahn library. It can receive messages from clients and send them back as is. The type of code 2024-12-16 12:11:50 15 views
PyBluez BluetoothSocket This function uses the bluetooth module from the PyBluez library to scan for Bluetooth devices within range and returns a list of devices with their names. Function 2024-12-16 12:11:13 14 views
Autobahn WampProtocol This function uses the Autobahn library to create a simple WAMP (WebSocket Application Messaging Protocol) messaging example. It defines a session class to receive messages and creates a function to send messages. Function 2024-12-16 12:10:59 4 views