Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Angular Universal vs. SignalR vs. jQuery #1

Open
chriscerk opened this issue Dec 8, 2016 · 0 comments
Open

Angular Universal vs. SignalR vs. jQuery #1

chriscerk opened this issue Dec 8, 2016 · 0 comments

Comments

@chriscerk
Copy link
Owner

chriscerk commented Dec 8, 2016

Angular Universal currently does not support use of jQuery since DOM objects do not exist on the server.

browser types - do not exist on the server - so using them, or any library that uses them (jQuery for example) will not work

Angular Universal Issue #512 when resolved will solve this problem.

Furthermore, SignalR is dependent on jQuery for initializing a connection.
SignalR Issue #372

Luckily .NET Core's SignalR exists.

This needs be explored to see if combining a use of import { isBrowser } from 'angular2-universal'; and implementing the .NET Core version of SignalR

Creating the connection is currently available with Javascript
let connection = new signalR.HubConnection("http://domain.com", "formatType=json&format=text");

Typescript implementation is in development.
aspnet/SignalR issue #3

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

No branches or pull requests

1 participant