|
@@ -116,7 +116,8 @@ class ConnHandler(object):
|
|
"""
|
|
"""
|
|
def __init__(self, socket, addr, server):
|
|
def __init__(self, socket, addr, server):
|
|
super(ConnHandler, self).__init__(socket,addr,server)
|
|
super(ConnHandler, self).__init__(socket,addr,server)
|
|
- await self.welcome_client()
|
|
|
|
|
|
+ task = await curio.spawn(self.welcome_client)
|
|
|
|
+ task.join()
|
|
|
|
|
|
async def disconnect(self):
|
|
async def disconnect(self):
|
|
"""
|
|
"""
|
|
@@ -169,6 +170,7 @@ class ConnHandler(object):
|
|
"""
|
|
"""
|
|
This method can be used to send a welcome message to the client.
|
|
This method can be used to send a welcome message to the client.
|
|
"""
|
|
"""
|
|
|
|
+ self.send("Welcome client, this is the server sending!")
|
|
pass
|
|
pass
|
|
|
|
|
|
|
|
|