signalr conncet to server with user pass #52
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi to all
I can not connect server asp.net by python whit SignalR Please help me:
Server two hubs :1-client token,2-client oms
Client token : when connect to server by user and password and method ,give one token and when send request to server must whit by token done and client token just for give token and request must send anther hub client oms and all data in client oms.
When send request data must send token and verify
When user conncetion.token have another token and being different token server
I connect to client token and received token but can not send token to server with data when send data and token error in the server
with Session() as session: connection = Connection("url", session) chat = connection.register_hub('clienttoken') chat2 = connection.register_hub('clientoms') connection.start() def print_received_message(**kwargs): print('received: ', kwargs) def token_change(*args,**kwargs): global b print('KWA:', kwargs) print("arg: ", args) a = kwargs if a == {}: pass else: b=[] b.append(a['R']) print("b token:",b) def print_error(error): print('error: ', error) with connection: chat.server.invoke('method for send user and pass', 'userid', 'password') connection.received += token_change connection.error += print_error chat2.server.invoke('method clientoms') connection.wait(12) error: KWA: {'R': {'ex': {'i': None, 'm': 'Object reference not set to an instance of an object.'}}, 'I': '1'}