Skip to content

Update SignalR Sample #13078

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

Merged
merged 3 commits into from
Aug 13, 2019
Merged

Update SignalR Sample #13078

merged 3 commits into from
Aug 13, 2019

Conversation

mikaelm12
Copy link
Contributor

Making our sample look nicer. This is more similar to what we have in the samples repo.

@@ -83,6 +84,13 @@ <h4>Group Actions</h4>
<script src="lib/signalr/signalr-protocol-msgpack.js"></script>
<script src="utils.js"></script>
<script>
var name = prompt("Please enter your name", "D'Artagnan");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just have a normal text input box with a default value of "Anonymous" or "D'Artagnan" or whatever for the user name? That way it doesn't block the entire browser UI.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. We had the prompt in other places where we connected on page load. If we have a "Connect" gesture we can use a standard text box. I would also suggest having the "Connect" button check for a non-empty user name and produce an error (and not connect) in that case.

{
await Clients.Others.SendAsync("Send", $"{Context.ConnectionId} left");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we include the user name in the query string or something so we can keep the user joined/left messages?

@Eilon Eilon added the area-signalr Includes: SignalR clients and servers label Aug 13, 2019
@mikaelm12 mikaelm12 merged commit e7a1dc6 into release/3.0 Aug 13, 2019
@ghost ghost deleted the mikaelm12/UpdateRepoSample branch August 13, 2019 22:12
@mikaelm12 mikaelm12 added the tell-mode Indicates a PR which is being merged during tell-mode label Aug 13, 2019
@analogrelay analogrelay added this to the 3.0.0-preview9 milestone Aug 13, 2019
@@ -27,6 +27,7 @@ <h1 id="head1">SignalR Hubs Sample</h1>
<option value="hubT">Hub&lt;T&gt;</option>
</select>

<input type="text" id="displayname" placeholder="Enter User Name" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I miss D'Artagnan 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same! ☹️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-signalr Includes: SignalR clients and servers tell-mode Indicates a PR which is being merged during tell-mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants