You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also think it is too much code just to set up a simple TCP-server. Wish there were something just a easy as Flask but more closer to clean TCP. Hopefully bamlet can save your day.
# an example of a TCP-server that answers with pong if you message ping to itfrombamletimportBamletapp=Bamlet()
@app.on_message()defon_message( message ):
ifmessage=='ping':
return'pong'defmain():
app.run( 'localhost', 5011 )
Examples
This project comes with some examples.
To run an example execute this command in to project's top folder