Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

signalr conncet to server with user pass #52

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

abbbasazhdari
Copy link

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'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants