Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 381 Bytes

README.rst

File metadata and controls

22 lines (14 loc) · 381 Bytes

nameko-socket-server

Entrypoints for access via simple sockets

Usage

from nameko_socket_server import socket_command

class MyService(object):
    @socket_command('hello')
    def hello(self):
        return 'hello world'
$ echo 'hello' | nc localhost 6000; echo
hello world